package com.shxc.smarttrade.utils;

import android.content.Context;
import android.widget.Toast;

import org.xchris.x;

/**
 * Created by czq on 2017/12/15.
 */

public class ToastUtils {

    private static Toast toast;

    public static void showToast(String content) {
        if (toast == null) {
            toast = Toast.makeText(x.app(),
                    content,
                    Toast.LENGTH_SHORT);
        } else {
            toast.setText(content);
        }
        toast.show();
    }
}
